import { deleteRequest, getRequest, postRequest } from "@/utils";

class Service {
  page = (params: object) => getRequest("/rule-management/list", params);
  add = (params: object) => postRequest("/addrules", params);
  remove = (ids: string[] | string) =>
    deleteRequest("/rule-management/{id}", ids);
  update = (params: object) => postRequest("/rule-management/update", params);
}
export const RulesService = new Service();
